﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

namespace DNA.Mvc
{
    /// <summary>
    /// Defines the Image resource class.
    /// </summary>
    public class ImageRes:Res
    {
        public ImageRes() { }

        public ImageRes(string url,string title="",int width=0,int height=0) 
        {
            Url = url;
            Title = title;
            Width = width;
            Height = height;
        }

        public bool IsDefault { get; set; }

        /// <summary>
        /// Gets/Sets the image width.
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        /// Gets/Sets the image height.
        /// </summary>
        public int Height { get; set; }
    }
}
